package com.atguigu.yygh.cmn.service;

import com.atguigu.yygh.model.cmn.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Author: 逸尘风清
 * @Date: 2021/4/5
 * @Time: 16:56
 * 描述：
 */
public interface DictService extends IService<Dict> {

    List<Dict> findChildByDictCode(String dictCode);

    String getName(String dictCode, String value);

    //导入数据字典
    // @CacheEvict(value = "dict", allEntries=true)
    void importDictData(MultipartFile file);

    //根据数据id查询子数据列表
    List<Dict> findChlidData(Long id);

    //导出数据字典接口
    void exportDictData(HttpServletResponse response);
}
